package IO;

import java.io.File;

public class IO_Demo3 {
    public static void main(String[] args) {
        File file = new File("./test.txt");
        boolean ret = file.delete();//返回 true 则为 删除成功
        //file.deleteOnExit();  JVM 运行结束后再删除
        System.out.println("ret = "+ret);
    }
}
